package cn.yuhh.pojo;

import java.util.List;

public class PageResult<T> {

    private Long total;             //总条量
    private Integer pageTotal;      //总页数
    private List<T> items;          //查询到的所有对象

    public PageResult() {
    }

    public PageResult(Long total, Integer pageTotal) {
        this.total = total;
        this.pageTotal = pageTotal;
    }

    public PageResult(Long total, List<T> items) {
        this.total = total;
        this.items = items;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public Integer getPageTotal() {
        return pageTotal;
    }

    public void setPageTotal(Integer pageTotal) {
        this.pageTotal = pageTotal;
    }

    public List<T> getItems() {
        return items;
    }

    public void setItems(List<T> items) {
        this.items = items;
    }
}
